package com.acme.superchat.service.command;


import com.acme.superchat.service.server.ChatWorker;
import com.acme.superchat.service.server.ClientOutputBuffer;
import com.acme.superchat.service.server.ServerConnector;

/**
 * Interface representing command.
 * @author Gregory Sobko
 */
public interface Command {
    /**
     * Command prefix should be unique to interact with user
     * @return String representing
     */
    String getCommandPrefix();

    /**
     * Executes command
     * @param serverConnector Connection with server
     * @param command comand to execute
     * @return status message
     */
    void executeCommand(ServerConnector serverConnector, String command);
}
